<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="customer.action?methodName=doUpdateCustomer" method="post">
		<table class="querytable">
			<tr>
				<th class="textright">客户姓名:</th>
				<td class="textleft">
					<input type="text" name="customerName" value="${customer.customerName }"/>
					<input type="hidden" name="customerId" value="${customer.customerId }"/>
				</td>
				<td class="textleft" id="resultCustomerName"></td>
			</tr>
			<tr>
				<th class="textright">年龄:</th>
				<td class="textleft">
					<input type="text" name="age" value="${customer.age }" />
				</td>
				<td id="resultAge" class="textleft"></td>
			</tr>
			<tr>
				<th class="textright">性别:</th>
				<td class="textleft">
					<input type="radio" name="gender" value="01" <c:if test="${customer.gender eq '01'  }">checked="checked"</c:if> />男
					<input type="radio" name="gender" value="02" <c:if test="${customer.gender eq '02'  }">checked="checked"</c:if> />女
				</td>
				<td class="textleft"></td>
			</tr>
			<tr>
				<th class="textright">身份证号码:</th>
				<td class="textleft">
					<input type="text" name="IDCard" value="${customer.IDCard }"/>
				</td>
				<td id="resultIDCard" class="textleft"></td>
			</tr>
			<tr>
				<th class="textright">客户号码:</th>
				<td class="textleft">
					<input type="text" name="customerNum" value="${customer.customerNum }"/>
				</td>
				<td class="textleft" id="resultCustomerNum"></td>
			</tr>
			<tr>
				<th class="textright">地址:</th>
				<td class="textleft">
					<input type="text" name="address" value="${customer.address }"/>
				</td>
				<td class="textleft" id="resultAddress"></td>
			</tr>
			<tr>
				<td align="center" colspan="3">
					<input type="submit" value="保存修改信息" />
				</td>
			</tr>
		</table>
	</form>
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/editTablestyles.css">
<script type="text/javascript" src="${pageContext.request.contextPath }/webjars/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/listTable.js"></script>

</body>
</html>